package com.letao.pojo;

import java.util.HashSet;
import java.util.Set;
import org.apache.struts2.json.annotations.JSON;
/**
 * Category entity. @author MyEclipse Persistence Tools
 */

public class Category implements java.io.Serializable {

	// Fields

	private Integer cid;
	private String cname;
	private String cdescription;
	private Set goodses = new HashSet(0);

	
	// Constructors

	/** default constructor */
	public Category() {
	}

	/** minimal constructor */
	public Category(String cname) {
		this.cname = cname;
	}

	/** full constructor */
	public Category(String cname, String cdescription, Set goodses) {
		this.cname = cname;
		this.cdescription = cdescription;
		this.goodses = goodses;
	}

	// Property accessors

	public Integer getCid() {
		return this.cid;
	}

	public void setCid(Integer cid) {
		this.cid = cid;
	}

	public String getCname() {
		return this.cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public String getCdescription() {
		return this.cdescription;
	}

	public void setCdescription(String cdescription) {
		this.cdescription = cdescription;
	}
	@JSON(serialize=false)
	public Set getGoodses() {
		return this.goodses;
	}

	public void setGoodses(Set goodses) {
		this.goodses = goodses;
	}

}